package com.aiks.single.singlemavenproject.entity;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName custom_user
 */
public class CustomUser implements Serializable {
    /**
     *
     */
    private Long id;

    /**
     *
     */
    private String userId;

    /**
     *
     */
    private String orgId;

    /**
     *
     */
    private String username;

    /**
     *
     */
    private String userNo;

    /**
     *
     */
    private String cnName;

    /**
     *
     */
    private String headPictureUrl;

    /**
     *
     */
    private String email;

    /**
     *
     */
    private String mobile;

    /**
     *
     */
    private Integer userstatus;

    /**
     *
     */
    private String subsidiaryId;

    /**
     *
     */
    private String positionId;

    /**
     *
     */
    private String positionName;

    /**
     *
     */
    private String gradeId;

    /**
     *
     */
    private String departmentId;

    /**
     *
     */
    private String departmentName;

    /**
     *
     */
    private Date createTime;

    /**
     *
     */
    private Date updateTime;

    /**
     *
     */
    private Date birthday;

    /**
     *
     */
    private String managerUserId;

    /**
     *
     */
    private String sex;

    /**
     *
     */
    private Integer emailValidated;

    /**
     *
     */
    private Integer mobileValidated;

    /**
     *
     */
    private Integer lockedOut;

    /**
     *
     */
    private Date entryTime;

    /**
     *
     */
    private String onManagerId;

    /**
     *
     */
    private Date consumeCreateTime;

    /**
     *
     */
    private Date consumeUpdateTime;

    /**
     *
     */
    private Integer deleted;

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Long getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     *
     */
    public String getUserId() {
        return userId;
    }

    /**
     *
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     *
     */
    public String getOrgId() {
        return orgId;
    }

    /**
     *
     */
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    /**
     *
     */
    public String getUsername() {
        return username;
    }

    /**
     *
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     *
     */
    public String getUserNo() {
        return userNo;
    }

    /**
     *
     */
    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    /**
     *
     */
    public String getCnName() {
        return cnName;
    }

    /**
     *
     */
    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    /**
     *
     */
    public String getHeadPictureUrl() {
        return headPictureUrl;
    }

    /**
     *
     */
    public void setHeadPictureUrl(String headPictureUrl) {
        this.headPictureUrl = headPictureUrl;
    }

    /**
     *
     */
    public String getEmail() {
        return email;
    }

    /**
     *
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     *
     */
    public String getMobile() {
        return mobile;
    }

    /**
     *
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     *
     */
    public Integer getUserstatus() {
        return userstatus;
    }

    /**
     *
     */
    public void setUserstatus(Integer userstatus) {
        this.userstatus = userstatus;
    }

    /**
     *
     */
    public String getSubsidiaryId() {
        return subsidiaryId;
    }

    /**
     *
     */
    public void setSubsidiaryId(String subsidiaryId) {
        this.subsidiaryId = subsidiaryId;
    }

    /**
     *
     */
    public String getPositionId() {
        return positionId;
    }

    /**
     *
     */
    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    /**
     *
     */
    public String getPositionName() {
        return positionName;
    }

    /**
     *
     */
    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    /**
     *
     */
    public String getGradeId() {
        return gradeId;
    }

    /**
     *
     */
    public void setGradeId(String gradeId) {
        this.gradeId = gradeId;
    }

    /**
     *
     */
    public String getDepartmentId() {
        return departmentId;
    }

    /**
     *
     */
    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    /**
     *
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     *
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /**
     *
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     *
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     *
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     *
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     *
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     *
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     *
     */
    public String getManagerUserId() {
        return managerUserId;
    }

    /**
     *
     */
    public void setManagerUserId(String managerUserId) {
        this.managerUserId = managerUserId;
    }

    /**
     *
     */
    public String getSex() {
        return sex;
    }

    /**
     *
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     *
     */
    public Integer getEmailValidated() {
        return emailValidated;
    }

    /**
     *
     */
    public void setEmailValidated(Integer emailValidated) {
        this.emailValidated = emailValidated;
    }

    /**
     *
     */
    public Integer getMobileValidated() {
        return mobileValidated;
    }

    /**
     *
     */
    public void setMobileValidated(Integer mobileValidated) {
        this.mobileValidated = mobileValidated;
    }

    /**
     *
     */
    public Integer getLockedOut() {
        return lockedOut;
    }

    /**
     *
     */
    public void setLockedOut(Integer lockedOut) {
        this.lockedOut = lockedOut;
    }

    /**
     *
     */
    public Date getEntryTime() {
        return entryTime;
    }

    /**
     *
     */
    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    /**
     *
     */
    public String getOnManagerId() {
        return onManagerId;
    }

    /**
     *
     */
    public void setOnManagerId(String onManagerId) {
        this.onManagerId = onManagerId;
    }

    /**
     *
     */
    public Date getConsumeCreateTime() {
        return consumeCreateTime;
    }

    /**
     *
     */
    public void setConsumeCreateTime(Date consumeCreateTime) {
        this.consumeCreateTime = consumeCreateTime;
    }

    /**
     *
     */
    public Date getConsumeUpdateTime() {
        return consumeUpdateTime;
    }

    /**
     *
     */
    public void setConsumeUpdateTime(Date consumeUpdateTime) {
        this.consumeUpdateTime = consumeUpdateTime;
    }

    /**
     *
     */
    public Integer getDeleted() {
        return deleted;
    }

    /**
     *
     */
    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CustomUser other = (CustomUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getOrgId() == null ? other.getOrgId() == null : this.getOrgId().equals(other.getOrgId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getUserNo() == null ? other.getUserNo() == null : this.getUserNo().equals(other.getUserNo()))
            && (this.getCnName() == null ? other.getCnName() == null : this.getCnName().equals(other.getCnName()))
            && (this.getHeadPictureUrl() == null ? other.getHeadPictureUrl() == null : this.getHeadPictureUrl().equals(other.getHeadPictureUrl()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getUserstatus() == null ? other.getUserstatus() == null : this.getUserstatus().equals(other.getUserstatus()))
            && (this.getSubsidiaryId() == null ? other.getSubsidiaryId() == null : this.getSubsidiaryId().equals(other.getSubsidiaryId()))
            && (this.getPositionId() == null ? other.getPositionId() == null : this.getPositionId().equals(other.getPositionId()))
            && (this.getPositionName() == null ? other.getPositionName() == null : this.getPositionName().equals(other.getPositionName()))
            && (this.getGradeId() == null ? other.getGradeId() == null : this.getGradeId().equals(other.getGradeId()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getDepartmentName() == null ? other.getDepartmentName() == null : this.getDepartmentName().equals(other.getDepartmentName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getManagerUserId() == null ? other.getManagerUserId() == null : this.getManagerUserId().equals(other.getManagerUserId()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getEmailValidated() == null ? other.getEmailValidated() == null : this.getEmailValidated().equals(other.getEmailValidated()))
            && (this.getMobileValidated() == null ? other.getMobileValidated() == null : this.getMobileValidated().equals(other.getMobileValidated()))
            && (this.getLockedOut() == null ? other.getLockedOut() == null : this.getLockedOut().equals(other.getLockedOut()))
            && (this.getEntryTime() == null ? other.getEntryTime() == null : this.getEntryTime().equals(other.getEntryTime()))
            && (this.getOnManagerId() == null ? other.getOnManagerId() == null : this.getOnManagerId().equals(other.getOnManagerId()))
            && (this.getConsumeCreateTime() == null ? other.getConsumeCreateTime() == null : this.getConsumeCreateTime().equals(other.getConsumeCreateTime()))
            && (this.getConsumeUpdateTime() == null ? other.getConsumeUpdateTime() == null : this.getConsumeUpdateTime().equals(other.getConsumeUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getOrgId() == null) ? 0 : getOrgId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getUserNo() == null) ? 0 : getUserNo().hashCode());
        result = prime * result + ((getCnName() == null) ? 0 : getCnName().hashCode());
        result = prime * result + ((getHeadPictureUrl() == null) ? 0 : getHeadPictureUrl().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getUserstatus() == null) ? 0 : getUserstatus().hashCode());
        result = prime * result + ((getSubsidiaryId() == null) ? 0 : getSubsidiaryId().hashCode());
        result = prime * result + ((getPositionId() == null) ? 0 : getPositionId().hashCode());
        result = prime * result + ((getPositionName() == null) ? 0 : getPositionName().hashCode());
        result = prime * result + ((getGradeId() == null) ? 0 : getGradeId().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getDepartmentName() == null) ? 0 : getDepartmentName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getManagerUserId() == null) ? 0 : getManagerUserId().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getEmailValidated() == null) ? 0 : getEmailValidated().hashCode());
        result = prime * result + ((getMobileValidated() == null) ? 0 : getMobileValidated().hashCode());
        result = prime * result + ((getLockedOut() == null) ? 0 : getLockedOut().hashCode());
        result = prime * result + ((getEntryTime() == null) ? 0 : getEntryTime().hashCode());
        result = prime * result + ((getOnManagerId() == null) ? 0 : getOnManagerId().hashCode());
        result = prime * result + ((getConsumeCreateTime() == null) ? 0 : getConsumeCreateTime().hashCode());
        result = prime * result + ((getConsumeUpdateTime() == null) ? 0 : getConsumeUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", orgId=").append(orgId);
        sb.append(", username=").append(username);
        sb.append(", userNo=").append(userNo);
        sb.append(", cnName=").append(cnName);
        sb.append(", headPictureUrl=").append(headPictureUrl);
        sb.append(", email=").append(email);
        sb.append(", mobile=").append(mobile);
        sb.append(", userstatus=").append(userstatus);
        sb.append(", subsidiaryId=").append(subsidiaryId);
        sb.append(", positionId=").append(positionId);
        sb.append(", positionName=").append(positionName);
        sb.append(", gradeId=").append(gradeId);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", departmentName=").append(departmentName);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", birthday=").append(birthday);
        sb.append(", managerUserId=").append(managerUserId);
        sb.append(", sex=").append(sex);
        sb.append(", emailValidated=").append(emailValidated);
        sb.append(", mobileValidated=").append(mobileValidated);
        sb.append(", lockedOut=").append(lockedOut);
        sb.append(", entryTime=").append(entryTime);
        sb.append(", onManagerId=").append(onManagerId);
        sb.append(", consumeCreateTime=").append(consumeCreateTime);
        sb.append(", consumeUpdateTime=").append(consumeUpdateTime);
        sb.append(", deleted=").append(deleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
